package com.wang.project.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName integral_order
 */
@TableName(value ="integral_order")
@Data
public class IntegralOrder implements Serializable {
    /**
     * 主键id
     */
    @TableId
    private Long id;

    /**
     * 积分兑换订单编号
     */
    private String orderCode;

    /**
     * 兑换的商品，比如接口name、刷新key
     */
    private String exchangeProductName;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 此次消耗的积分
     */
    private Integer expendIntegralAmount;

    /**
     * 兑换场景，兑换什么
     */
    private String exchangeType;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}